package com.boot4g.bean.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenginger
 * @date 2018/09/04
 * redis 开关配置
 */
@RefreshScope
@Configuration
@ConditionalOnProperty(prefix = "cloud4g", name = "redis")
public class RedisPropertiesConfig {
    @Value("${cloud4g.redis.open}")
    private boolean redisOpen;

}
